package com.fang.thread;

/**
 * @Description
 * @Author Bernie_fang
 * @Date 2023/1/14 11:44
 **/
public class Example1 extends Thread {

    @Override
    public void run() {
        for (int i = 0; i < 2000; i++) {
            System.out.println("现在是：" + i);
        }
    }

    public static void main(String[] args) {
        Example1 example1 = new Example1();
        example1.start();
        for (int i = 0; i < 2000; i++) {
            System.out.println("主线程：" + i);
        }
    }

}